<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Mensaje de {shop_name}</title>
</head>
<body>
	<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
		<tr>
			<td align="left">
				<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left">Hola <strong style="color:#DB3484;">{firstname} {lastname}</strong>, 
			gràcies per comprar a <strong>{shop_name}</strong>.</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">Dades 
			de la comanda</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left">
				Comanda: <strong><span style="color:#DB3484;">{order_name}</span> 
				rebuda el {date}</strong>
				<br >Pagament: <strong>{payment}</strong>
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left">
				<table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;">
					<!-- Title -->
					<tr style="background-color:#B9BABE; text-align:center;">
						<th style="width:15%; padding: 0.6em 0;">Referència</th>
						<th>Article</th>
						<th style="width:15%; padding: 0.6em 0;">Preu per unitat</th>
						<th style="width:15%; padding: 0.6em 0;">Quantitat</th>
						<th style="width:20%; padding: 0.6em 0;">Preu total</th>
					</tr>
					<!-- Products -->
						{products}
						{discounts}
					<!-- Footer: prices -->
					<tr style="text-align:right;">
						<td> </td>
						<td colspan="3" style="background-color:#B9BABE; padding:0.6em 0.4em;">Articles</td>
						<td style="background-color:#B9BABE; padding:0.6em 0.4em;">{total_products}</td>
					</tr>
					<tr style="text-align:right;">
						<td> </td>
						<td colspan="3" style="background-color:#EBECEE; padding:0.6em 0.4em;">
						Descomptes</td>
						<td style="background-color:#EBECEE; padding:0.6em 0.4em;">{total_discounts}</td>
					</tr>
					<tr style="text-align:right;">
						<td> </td>
						<td colspan="3" style="background-color:#EBECEE; padding:0.6em 0.4em;">
						Empaquetat per a regal</td>
						<td style="background-color:#EBECEE; padding:0.6em 0.4em;">{total_wrapping}</td>
					</tr>					
					<tr style="text-align:right;">
						<td> </td>
						<td colspan="3" style="background-color:#DDE2E6; padding:0.6em 0.4em;">
						Despeses d'enviament</td>
						<td style="background-color:#DDE2E6; padding:0.6em 0.4em;">{total_shipping}</td>
					</tr>
					<tr style="text-align:right; font-weight:bold;">
						<td> </td>
						<td colspan="3" style="background-color:#F1AECF; padding:0.6em 0.4em;">
						Total pagat</td>
						<td style="background-color:#F1AECF; padding:0.6em 0.4em;">{total_paid}</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">
			Enviament</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left">
				Empresa de transport: <strong>{carrier}</strong>
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td>
				<table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;">
					<tr style="background-color:#B9BABE; text-transform:uppercase;">
						<th style="text-align:left; padding: 0.3em 1em;">ADREÇA 
						D'ENVIAMENT</th>
						<th style="text-align:left; padding: 0.3em 1em;">ADREÇA 
						DE FACTURACIÓ</th>
					</tr>
					<tr>
						<td style="padding:0.5em 0 0.5em 0.5em; background-color:#EBECEE;">
							<span style="color:#DB3484; font-weight:bold;">{delivery_firstname} {delivery_lastname}</span>
							<br>{delivery_address1}
							<br>{delivery_address2}
							<br>{delivery_city} {delivery_postal_code}
							<br>{delivery_country} {delivery_state}
							<br>{delivery_phone}
						</td>
						<td style="padding:0.5em 0 0.5em 0.5em; background-color:#EBECEE;">
							<span style="color:#DB3484; font-weight:bold;">{invoice_firstname} {invoice_lastname}</span>
							<br>{invoice_address1}
							<br>{invoice_address2}
							<br>{invoice_city} {invoice_postal_code}
							<br>{invoice_country} {invoice_state}
							<br>{invoice_phone}
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="left">
				Pot revisar aquesta comanda i descarregar la factura des de la 
				secció <a href="{shop_url}history.php" style="color:#DB3484; font-weight:bold; text-decoration:none;">"Historial 
				i detalls de les seves comandes"</a> del seu compte prement 
				sobre <a href="{shop_url}my-account.php" style="color:#DB3484; font-weight:bold; text-decoration:none;">"El 
				meu compte"</a> a la nostra pàgina web.
			</td>
		</tr>
		<tr><td> </td></tr>
		<tr>
			<td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
				<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> està 
				gestionada amb <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
			</td>
		</tr>
	</table>
</body>
</html>
